package com.king.platform.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig
{
  @Bean
  public OpenAPI docsOpenApi()
  {
    return new OpenAPI()
        .info(new Info().title("API接口文档")
            .description("通用设计rest")
            .version("v1.0"))
        .externalDocs(new ExternalDocumentation()
            .description("www.baidu.com")
            .url("https://www.baidu.com/"));
  }



}
